import { Service } from '../utils/axios'
// 登录
export const loginRes = (data) => {
    return Service({
        url: '/api/user/login',
        data,
        method: 'POST',
    })
}
// 获取登录人信息
export const loginGetInfo = () => {
    return Service({
        url: '/api/user/get_info',
        method: 'POST',
    })
}
// 登出
export const logout = () => {
    return Service({
        url: '/api/user/logout',
        method: 'POST',
    })
}
// 注册
export const register = (data) => {
    return Service({
        url: '/api/user/register',
        data,
        method: 'POST',
    })
}